package name.fowler.refactoring.simplestore.domain.movie;

public class MovieRegular extends Movie {

	private static final double MULTIPLY_COEFFICIENT = 1.5;
	private static final double BASE_PRICE = 2;

	public MovieRegular(String title) {
		super(title);
	}

	@Override
	public double calculateRentalPrice(int days) {
		double price = BASE_PRICE;
		if (days > 2) {
			price += (days - 2) * MULTIPLY_COEFFICIENT;
		}

		return price;
	}

}
